<div class="form" style="background:url('<?php echo Yii::app()->request->baseUrl; ?>/themes/hachimaki/imagens/bg5.png') repeat scroll top center transparent; height:auto; padding-top:8%; width:370px; text-align:left; line-height: 1; border: 3px solid #CCCCCC;">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'cad-parceiros-form',
	'enableAjaxValidation'=>false,
)); ?>
	<h1 class="titulo_login" style="color: #444444;
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 34px;
    margin-top: -53px;
    text-align: center;
    width: 100%;
    z-index: -10000;">Criar novo parceiro</h1>
    
	<p class="note">Campos com <span class="required">*</span> são obrigatórios.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'cod_associacao'); ?>
		<?php  echo $form->dropDownList($model,'cod_associacao',  cad_associacao::loadTableAssociado()); ?>            
		<?php echo $form->error($model,'cod_associacao'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'razao_social'); ?>
		<?php echo $form->textField($model,'razao_social',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'razao_social'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'cnpj'); ?>
		<?php echo $form->textField($model,'cnpj',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'cnpj'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;"">
		<?php echo $form->labelEx($model,'logradouro'); ?>
		<?php echo $form->textField($model,'logradouro',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'logradouro'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'numero'); ?>
		<?php echo $form->textField($model,'numero',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'numero'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'complemento'); ?>
		<?php echo $form->textField($model,'complemento',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'complemento'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'bairro'); ?>
		<?php echo $form->textField($model,'bairro',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'bairro'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'cep'); ?>
		<?php echo $form->textField($model,'cep',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'cep'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'cidade'); ?>
		<?php echo $form->textField($model,'cidade',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'cidade'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'estado'); ?>
		<?php echo $form->textField($model,'estado',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'estado'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'telefone_1'); ?>
		<?php echo $form->textField($model,'telefone_1',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'telefone_1'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'telefone_2'); ?>
		<?php echo $form->textField($model,'telefone_2',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'telefone_2'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'telefone_3'); ?>
		<?php echo $form->textField($model,'telefone_3',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'telefone_3'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'fax'); ?>
		<?php echo $form->textField($model,'fax',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'fax'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'e_mail'); ?>
		<?php echo $form->textField($model,'e_mail',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'e_mail'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'site'); ?>
		<?php echo $form->textField($model,'site',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'site'); ?>
	</div>

	<div class="row buttons" style="text-align:center; margin-bottom:0px; position:relative; clear:both; padding-top:25px;">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Salvar' : 'Salvar'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->